package com.woniuxy.oldmanapi.mapper;

import com.woniuxy.oldmanapi.entity.Bedlog;
import com.woniuxy.oldmanapi.xvo.BedLogVo;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface BedlogMapper extends Mapper<Bedlog> {
    List<BedLogVo> selectBedLogByname(String name);

    @Select("select * from bedlog where older_id = #{oid}")
    Bedlog selectLogByOid(int oid);
}
